const serviceModule = {
  // 登录
  login: {
    url: '/userinfo/login',

    method: 'post'
  },
  // 注册zlx
  register: {
    url: '/userinfo/register',
    method: 'post'
  },
   // checkoutUid校验uid zlx
  checkUid: {
    url: '/userinfo/checkUid',
    method: 'post'
  },
  getAllMessages: {
    url: '/historyRecord/all',
    method: 'get'
  },
  getUnreadMessages:{
    url: '/unreadRecord',
    method: 'get'
  },
  // clearUnreadCount: {
  //   url: '/unreadRecord/clearCount',
  //   method: 'post'
  // },
  searchUser: {
    url: '/userinfo/search',
    method: 'get'
  },
  avatar:{
     url: '/userinfo/avatar',
    method: 'post'
  },
  getAvatar:{
    url: '/userinfo/getAvatar',
    method: 'post'
  },
  getFriendRequest: {
    url: '/friendRequest',
    method: 'get'
  },
  getFriendList: {
    url: '/friendlist',
    method: 'get'
  },
  clearUnreadCount: {
    url: '/historyRecord/clearUnread',
    method: 'post'
  },
  deleteHistoryRecord: {
    url: '/historyRecord/delete',
    method: 'post'
  },
  getMyComment: {
    url: 'comment/getmycomment',
    method: 'get'
  },
  deleteMyComment: {
    url: 'comment/deletemycomment',
    method: 'post'
  },
  deleteFriend: {
    url: 'friendlist/delete',
    method: 'get'
  },
  addComment: {
    url: 'comment/addcomment',
    method: 'post'
  }
}

const ApiSetting = {
  ...serviceModule
}

export default ApiSetting
